package yuxi3;

//StringBuilder和String转换

public class StringBuilderDem03 {
    public static void main(String[] args) {

       /*
        //StringBuilder转换为String
        StringBuilder sb = new StringBuilder();
        sb.append("hello");
        String s =  sb.toString();
        System.out.println(s);
        */

        //String 转换为StringBuilder
        String s =  "hello";
        StringBuilder sb = new StringBuilder(s);
        System.out.println(sb);
    }
}
